//
//  ViewController.m
//  RACDemo
//
//  Created by he.xu on 2017/12/29.
//  Copyright © 2017年 mingxin.ji. All rights reserved.
//

#import "ViewController.h"


@interface ViewController ()<UITableViewDelegate,UITableViewDataSource>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    
    NSInteger row = indexPath.row;
    switch (row) {
        case 0:{
        
            UIViewController *vc = (UIViewController *)[[NSClassFromString(@"RACSignalViewController") alloc] init];
            [self.navigationController pushViewController:vc animated:YES];
            break;
        }
        case 1:{
            
            UIViewController *vc = (UIViewController *)[[NSClassFromString(@"RACSubjectViewController") alloc] init];
            [self.navigationController pushViewController:vc animated:YES];
            break;
        }
            
            
        default:
            break;
    }
    
}

@end
